import React,{Suspense} from "react";
import { useRoutes } from "react-router";
import { BrowserRouter } from "react-router-dom";
import { ROUTER_LIST } from "./router";
const ROUTER:React.FC=()=>{
    const App=()=>useRoutes(ROUTER_LIST)
    return(
        <BrowserRouter>
            <Suspense fallback={<div>加载</div>}>
                <App/>
            </Suspense>
        </BrowserRouter>
    )
}
export default ROUTER